import request from '@/utils/request'

// 查询人员类目分配配置列表
export function listCategoryPersonConfig(query) {
  return request({
    url: '/base/categoryPersonConfig/list',
    method: 'get',
    params: query
  })
}

// 查询人员类目分配配置详细
export function getCategoryPersonConfig(id) {
  return request({
    url: '/base/categoryPersonConfig/' + id,
    method: 'get'
  })
}

// 新增人员类目分配配置
export function addCategoryPersonConfig(data) {
  return request({
    url: '/base/categoryPersonConfig',
    method: 'post',
    data: data
  })
}

// 修改人员类目分配配置
export function updateCategoryPersonConfig(data) {
  return request({
    url: '/base/categoryPersonConfig',
    method: 'put',
    data: data
  })
}

// 删除人员类目分配配置
export function delCategoryPersonConfig(id) {
  return request({
    url: '/base/categoryPersonConfig/' + id,
    method: 'delete'
  })
}

// 导出人员类目分配配置
export function exportCategoryPersonConfig(query) {
  return request({
    url: '/base/categoryPersonConfig/export',
    method: 'get',
    params: query
  })
}